#pragma once
#include <SimpleDef.h>
#include <IO/VideoTextMode.h>
void panic(LPCSTR lpcsFileName, DWORD dwLine, LPCSTR lpcsFunc, LPCSTR lpcsCondition);

#define KERNEL_PANIC(CONDITION) panic(__FILE__, __LINE__, __FUNCTION__, CONDITION)


#define KERNEL_ASSERT(CONDITION, ...) \
    if (!(CONDITION)) { \
        kerror(__VA_ARGS__); \
        KERNEL_PANIC(#CONDITION); \
    }